this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["featured-product"]=function(e){function t(t){for(var n,a,i=t[0],s=t[1],l=t[2],d=0,b=[];d<i.length;d++)a=i[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&b.push(c[a][0]),c[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(t);b.length;)b.shift()();return o.push.apply(o,l||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,i=1;i<r.length;i++){var s=r[i];0!==c[s]&&(n=!1)}n&&(o.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},c={15:0,1:0,2:0,3:0},o=[];function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var u=s;return o.push([499,0]),r()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t){e.exports=window.wp.htmlEntities},100:function(e,t,r){"use strict";function n(e){return e?`${Math.round(100*e.x)}% ${Math.round(100*e.y)}%`:""}function c({focalPoint:e,imageFit:t,isImgElement:r,isRepeated:c,url:o}){let a={};var i;return a=r?{...a,...(i=e,i?{objectPosition:n(i)}:{}),objectFit:t}:{...a,...o&&{backgroundImage:`url(${o})`},backgroundPosition:n(e),...!c&&{backgroundRepeat:"no-repeat",backgroundSize:"cover"===t?t:"auto"}},a}function o(e){return`wc-block-${e.split("/")[1]}`}function a(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a}))},102:function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n=r(0),c=r(1),o=r(2),a=r(70),i=r(614),s=r(4),l=r.n(s),u=r(11),d=r(16),b=r(35),m=r(613),g=r(10);r(55);const p=({id:e,label:t,popoverContents:r,remove:i,screenReaderLabel:s,className:d=""})=>{const[b,h]=Object(n.useState)(!1),O=Object(u.useInstanceId)(p);if(s=s||t,!t)return null;t=Object(g.decodeEntities)(t);const j=l()("woocommerce-tag",d,{"has-remove":!!i}),f=`woocommerce-tag__label-${O}`,v=Object(n.createElement)(n.Fragment,null,Object(n.createElement)("span",{className:"screen-reader-text"},s),Object(n.createElement)("span",{"aria-hidden":"true"},t));return Object(n.createElement)("span",{className:j},r?Object(n.createElement)(o.Button,{className:"woocommerce-tag__text",id:f,onClick:()=>h(!0)},v):Object(n.createElement)("span",{className:"woocommerce-tag__text",id:f},v),r&&b&&Object(n.createElement)(o.Popover,{onClose:()=>h(!1)},r),i&&Object(n.createElement)(o.Button,{className:"woocommerce-tag__remove",onClick:i(e),label:Object(c.sprintf)(
// Translators: %s label.
Object(c.__)("Remove %s","woocommerce"),t),"aria-describedby":f},Object(n.createElement)(a.a,{icon:m.a,size:20,className:"clear-icon"})))};var h=p;r(54);const O=e=>Object(n.createElement)(b.b,{...e}),j=e=>{const{list:t,selected:r,renderItem:c,depth:o=0,onSelect:a,instanceId:i,isSingle:s,search:l,useExpandedPanelId:u}=e,[d]=u;return t?Object(n.createElement)(n.Fragment,null,t.map((t=>{var b,m;const g=null!==(b=t.children)&&void 0!==b&&b.length&&!s?t.children.every((({id:e})=>r.find((t=>t.id===e)))):!!r.find((({id:e})=>e===t.id)),p=(null===(m=t.children)||void 0===m?void 0:m.length)&&d===t.id;return Object(n.createElement)(n.Fragment,{key:t.id},Object(n.createElement)("li",null,c({item:t,isSelected:g,onSelect:a,isSingle:s,selected:r,search:l,depth:o,useExpandedPanelId:u,controlId:i})),p?Object(n.createElement)(j,{...e,list:t.children,depth:o+1}):null)}))):null},f=({isLoading:e,isSingle:t,selected:r,messages:a,onChange:i,onRemove:s})=>{if(e||t||!r)return null;const l=r.length;return Object(n.createElement)("div",{className:"woocommerce-search-list__selected"},Object(n.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(n.createElement)("strong",null,a.selected(l)),l>0?Object(n.createElement)(o.Button,{isLink:!0,isDestructive:!0,onClick:()=>i([]),"aria-label":a.clear},Object(c.__)("Clear all","woocommerce")):null),l>0?Object(n.createElement)("ul",null,r.map(((e,t)=>Object(n.createElement)("li",{key:t},Object(n.createElement)(h,{label:e.name,id:e.id,remove:s}))))):null)},v=({filteredList:e,search:t,onSelect:r,instanceId:o,useExpandedPanelId:s,...l})=>{const{messages:u,renderItem:d,selected:b,isSingle:m}=l,g=d||O;return 0===e.length?Object(n.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(n.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(n.createElement)(a.a,{icon:i.a})),Object(n.createElement)("span",{className:"woocommerce-search-list__not-found-text"},t?Object(c.sprintf)(u.noResults,t):u.noItems)):Object(n.createElement)("ul",{className:"woocommerce-search-list__list"},Object(n.createElement)(j,{useExpandedPanelId:s,list:e,selected:b,renderItem:g,onSelect:r,instanceId:o,isSingle:m,search:t}))},_=e=>{const{className:t="",isCompact:r,isHierarchical:a,isLoading:i,isSingle:s,list:b,messages:m=d.a,onChange:g,onSearch:p,selected:h,type:O="text",debouncedSpeak:j}=e,[w,E]=Object(n.useState)(""),k=Object(n.useState)(-1),y=Object(u.useInstanceId)(_),S=Object(n.useMemo)((()=>({...d.a,...m})),[m]),I=Object(n.useMemo)((()=>Object(d.c)(b,w,a)),[b,w,a]);Object(n.useEffect)((()=>{j&&j(S.updated)}),[j,S]),Object(n.useEffect)((()=>{"function"==typeof p&&p(w)}),[w,p]);const C=Object(n.useCallback)((e=>()=>{s&&g([]);const t=h.findIndex((({id:t})=>t===e));g([...h.slice(0,t),...h.slice(t+1)])}),[s,h,g]),x=Object(n.useCallback)((e=>()=>{Array.isArray(e)?g(e):-1===h.findIndex((({id:t})=>t===e.id))?g(s?[e]:[...h,e]):C(e.id)()}),[s,C,g,h]),P=Object(n.useCallback)((e=>{const[t]=h.filter((t=>!e.find((e=>t.id===e.id))));C(t.id)()}),[C,h]);return Object(n.createElement)("div",{className:l()("woocommerce-search-list",t,{"is-compact":r,"is-loading":i,"is-token":"token"===O})},"text"===O&&Object(n.createElement)(f,{...e,onRemove:C,messages:S}),Object(n.createElement)("div",{className:"woocommerce-search-list__search"},"text"===O?Object(n.createElement)(o.TextControl,{label:S.search,type:"search",value:w,onChange:e=>E(e)}):Object(n.createElement)(o.FormTokenField,{disabled:i,label:S.search,onChange:P,onInputChange:e=>E(e),suggestions:[],__experimentalValidateInput:()=>!1,value:i?[Object(c.__)("Loading…","woocommerce")]:h.map((e=>({...e,value:e.name}))),__experimentalShowHowTo:!1})),i?Object(n.createElement)("div",{className:"woocommerce-search-list__list"},Object(n.createElement)(o.Spinner,null)):Object(n.createElement)(v,{...e,search:w,filteredList:I,messages:S,onSelect:x,instanceId:y,useExpandedPanelId:k}))};Object(o.withSpokenMessages)(_)},106:function(e,t){},11:function(e,t){e.exports=window.wp.compose},110:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(260),a=r(35),i=r(102),s=r(11),l=r(218),u=r(18),d=r.n(u),b=r(25),m=r.n(b),g=r(23),p=r(28),h=Object(s.createHigherOrderComponent)((e=>{class t extends n.Component{constructor(...e){super(...e),d()(this,"state",{error:null,loading:!1,variations:{}}),d()(this,"loadVariations",(()=>{const{products:e}=this.props,{loading:t,variations:r}=this.state;if(t)return;const n=this.getExpandedProduct();if(!n||r[n])return;const c=e.find((e=>e.id===n));c.variations&&0!==c.variations.length?(this.setState({loading:!0}),Object(g.g)(n).then((e=>{const t=e.map((e=>({...e,parent:n})));this.setState({variations:{...this.state.variations,[n]:t},loading:!1,error:null})})).catch((async e=>{const t=await Object(p.a)(e);this.setState({variations:{...this.state.variations,[n]:null},loading:!1,error:t})}))):this.setState({variations:{...this.state.variations,[n]:null},loading:!1,error:null})}))}componentDidMount(){const{selected:e,showVariations:t}=this.props;e&&t&&this.loadVariations()}componentDidUpdate(e){const{isLoading:t,selected:r,showVariations:n}=this.props;n&&(!m()(e.selected,r)||e.isLoading&&!t)&&this.loadVariations()}isProductId(e){const{products:t}=this.props;return t.some((t=>t.id===e))}findParentProduct(e){var t;const{products:r}=this.props;return null===(t=r.filter((t=>t.variations&&t.variations.find((({id:t})=>t===e))))[0])||void 0===t?void 0:t.id}getExpandedProduct(){const{isLoading:e,selected:t,showVariations:r}=this.props;if(!r)return null;let n=t&&t.length?t[0]:null;return n?this.prevSelectedItem=n:this.prevSelectedItem&&(e||this.isProductId(this.prevSelectedItem)||(n=this.prevSelectedItem)),!e&&n?this.isProductId(n)?n:this.findParentProduct(n):null}render(){const{error:t,isLoading:r}=this.props,{error:c,loading:o,variations:a}=this.state;return Object(n.createElement)(e,{...this.props,error:c||t,expandedProduct:this.getExpandedProduct(),isLoading:r,variations:a,variationsLoading:o})}}return d()(t,"defaultProps",{selected:[],showVariations:!1}),t}),"withProductVariations"),O=r(34),j=r(4),f=r.n(j),v=r(73);r(155);const _={list:Object(c.__)("Products","woocommerce"),noItems:Object(c.__)("Your store doesn't have any products.","woocommerce"),search:Object(c.__)("Search for a product to display","woocommerce"),updated:Object(c.__)("Product search results updated.","woocommerce")},w=({expandedProduct:e,error:t,instanceId:r,isCompact:s,isLoading:l,onChange:u,onSearch:d,products:b,renderItem:m,selected:g,showVariations:p,variations:h,variationsLoading:j})=>{if(t)return Object(n.createElement)(O.a,{error:t});const w=[...b,...h&&h[e]?h[e]:[]];return Object(n.createElement)(i.a,{className:"woocommerce-products",list:w,isCompact:s,isLoading:l,isSingle:!0,selected:w.filter((({id:e})=>g.includes(e))),onChange:u,renderItem:m||(p?e=>{const{item:t,search:i,depth:s=0,isSelected:u,onSelect:d}=e,b=t.variations&&Array.isArray(t.variations)?t.variations.length:0,m=f()("woocommerce-search-product__item","woocommerce-search-list__item",`depth-${s}`,"has-count",{"is-searching":i.length>0,"is-skip-level":0===s&&0!==t.parent,"is-variable":b>0});if(!t.breadcrumbs.length)return Object(n.createElement)(v.a,{...e,className:f()(m,{"is-selected":u}),isSelected:u,item:t,onSelect:()=>()=>{d(t)()},isLoading:l||j,countLabel:t.variations.length>0?Object(c.sprintf)(/* translators: %1$d is the number of variations of a product product. */
Object(c.__)("%1$d variations","woocommerce"),t.variations.length):null,name:`products-${r}`,"aria-label":Object(c.sprintf)(/* translators: %1$s is the product name, %2$d is the number of variations of that product. */
Object(c._n)("%1$s, has %2$d variation","%1$s, has %2$d variations",t.variations.length,"woocommerce"),t.name,t.variations.length)});const g=Object(o.a)(t.variation)?e:{...e,item:{...e.item,name:t.variation},"aria-label":`${t.breadcrumbs[0]}: ${t.variation}`};return Object(n.createElement)(a.a,{...g,className:m,name:`variations-${r}`})}:null),onSearch:d,messages:_,isHierarchical:!0})};var E;w.defaultProps={isCompact:!1,expandedProduct:null,selected:[],showVariations:!1},t.a=(E=Object(l.a)(h(Object(s.withInstanceId)(w))),e=>{let{selected:t}=e;t=void 0===t?null:t;const r=null===t;return Array.isArray(t)?Object(n.createElement)(E,{...e}):Object(n.createElement)(E,{...e,selected:r?[]:[t]})})},113:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"string"==typeof e},127:function(e,t){e.exports=window.wp.styleEngine},131:function(e,t){},14:function(e,t){e.exports=window.wp.apiFetch},15:function(e,t){e.exports=window.wp.url},155:function(e,t){},16:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"b",(function(){return u}));var n=r(0),c=r(1),o=r(57);const a={clear:Object(c.__)("Clear all selected items","woocommerce"),noItems:Object(c.__)("No items found.","woocommerce"),
/* Translators: %s search term */
noResults:Object(c.__)("No results for %s","woocommerce"),search:Object(c.__)("Search for items","woocommerce"),selected:e=>Object(c.sprintf)(/* translators: Number of items selected from list. */
Object(c._n)("%d item selected","%d items selected",e,"woocommerce"),e),updated:Object(c.__)("Search results updated.","woocommerce")},i=(e,t=e)=>{const r=e.reduce(((e,t)=>{const r=t.parent||0;return e[r]||(e[r]=[]),e[r].push(t),e}),{}),n=Object(o.a)(t,"id"),c=["0"],a=(e={})=>e.parent?[...a(n[e.parent]),e.name]:e.name?[e.name]:[],i=e=>e.map((e=>{const t=r[e.id];return c.push(""+e.id),{...e,breadcrumbs:a(n[e.parent]),children:t&&t.length?i(t):[]}})),s=i(r[0]||[]);return Object.entries(r).forEach((([e,t])=>{c.includes(e)||s.push(...i(t||[]))})),s},s=(e,t,r)=>{if(!t)return r?i(e):e;const n=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),c=e.map((e=>!!n.test(e.name)&&e)).filter(Boolean);return r?i(c,e):c},l=(e,t)=>{if(!t)return e;const r=new RegExp(`(${t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")})`,"ig");return e.split(r).map(((e,t)=>r.test(e)?Object(n.createElement)("strong",{key:t},e):Object(n.createElement)(n.Fragment,{key:t},e)))},u=e=>1===e.length?e.slice(0,1).toString():2===e.length?e.slice(0,1).toString()+" › "+e.slice(-1).toString():e.slice(0,1).toString()+" … "+e.slice(-1).toString()},17:function(e,t,r){"use strict";r.d(t,"p",(function(){return o})),r.d(t,"n",(function(){return a})),r.d(t,"m",(function(){return i})),r.d(t,"o",(function(){return s})),r.d(t,"k",(function(){return l})),r.d(t,"e",(function(){return u})),r.d(t,"h",(function(){return d})),r.d(t,"l",(function(){return b})),r.d(t,"c",(function(){return m})),r.d(t,"d",(function(){return g})),r.d(t,"g",(function(){return p})),r.d(t,"a",(function(){return j})),r.d(t,"b",(function(){return f})),r.d(t,"i",(function(){return v})),r.d(t,"j",(function(){return _})),r.d(t,"f",(function(){return w}));var n,c=r(3);const o=Object(c.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),a=o.pluginUrl+"images/",i=o.pluginUrl+"build/",s=o.buildPhase,l=null===(n=c.STORE_PAGES.shop)||void 0===n?void 0:n.permalink,u=c.STORE_PAGES.checkout.id,d=(c.STORE_PAGES.checkout.permalink,c.STORE_PAGES.privacy.permalink),b=(c.STORE_PAGES.privacy.title,c.STORE_PAGES.terms.permalink),m=(c.STORE_PAGES.terms.title,c.STORE_PAGES.cart.id),g=c.STORE_PAGES.cart.permalink,p=(c.STORE_PAGES.myaccount.permalink?c.STORE_PAGES.myaccount.permalink:Object(c.getSetting)("wpLoginUrl","/wp-login.php"),Object(c.getSetting)("localPickupEnabled",!1)),h=Object(c.getSetting)("countries",{}),O=Object(c.getSetting)("countryData",{}),j=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowBilling)).map((e=>[e,h[e]||""]))),f=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowBilling)).map((e=>[e,O[e].states||[]]))),v=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowShipping)).map((e=>[e,h[e]||""]))),_=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowShipping)).map((e=>[e,O[e].states||[]]))),w=Object.fromEntries(Object.keys(O).map((e=>[e,O[e].locale||[]])))},2:function(e,t){e.exports=window.wp.components},21:function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(42);const c=e=>!Object(n.a)(e)&&e instanceof Object&&e.constructor===Object;function o(e,t){return c(e)&&t in e}const a=e=>0===Object.keys(e).length},218:function(e,t,r){"use strict";var n=r(0),c=r(17),o=r(23),a=r(41),i=r(28);t.a=e=>({selected:t,...r})=>{const[s,l]=Object(n.useState)(!0),[u,d]=Object(n.useState)(null),[b,m]=Object(n.useState)([]),g=c.p.productCount>100,p=async e=>{const t=await Object(i.a)(e);d(t),l(!1)},h=Object(n.useRef)(t);Object(n.useEffect)((()=>{Object(o.h)({selected:h.current}).then((e=>{m(e),l(!1)})).catch(p)}),[h]);const O=Object(a.b)((e=>{Object(o.h)({selected:t,search:e}).then((e=>{m(e),l(!1)})).catch(p)}),400),j=Object(n.useCallback)((e=>{l(!0),O(e)}),[l,O]);return Object(n.createElement)(e,{...r,selected:t,error:u,products:b,isLoading:s,onSearch:g?j:null})}},23:function(e,t,r){"use strict";r.d(t,"h",(function(){return l})),r.d(t,"e",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"i",(function(){return b})),r.d(t,"f",(function(){return m})),r.d(t,"c",(function(){return g})),r.d(t,"d",(function(){return p})),r.d(t,"g",(function(){return h})),r.d(t,"a",(function(){return O}));var n=r(15),c=r(14),o=r.n(c),a=r(3),i=r(17);const s=(e,t)=>{const r=new Map;return e.filter((e=>{const n=t(e);return!r.has(n)&&(r.set(n,e),!0)}))},l=({selected:e=[],search:t="",queryArgs:r={}})=>{const c=(({selected:e=[],search:t="",queryArgs:r={}})=>{const c=i.p.productCount>100,o={per_page:c?100:0,catalog_visibility:"any",search:t,orderby:"title",order:"asc"},a=[Object(n.addQueryArgs)("/wc/store/v1/products",{...o,...r})];return c&&e.length&&a.push(Object(n.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:e,per_page:0})),a})({selected:e,search:t,queryArgs:r});return Promise.all(c.map((e=>o()({path:e})))).then((e=>{const t=e.flat();return s(t,(e=>e.id)).map((e=>({...e,parent:0})))})).catch((e=>{throw e}))},u=e=>o()({path:`/wc/store/v1/products/${e}`}),d=()=>o()({path:"wc/store/v1/products/attributes"}),b=e=>o()({path:`wc/store/v1/products/attributes/${e}/terms`}),m=({selected:e=[],search:t})=>{const r=(({selected:e=[],search:t})=>{const r=Object(a.getSetting)("limitTags",!1),c=[Object(n.addQueryArgs)("wc/store/v1/products/tags",{per_page:r?100:0,orderby:r?"count":"name",order:r?"desc":"asc",search:t})];return r&&e.length&&c.push(Object(n.addQueryArgs)("wc/store/v1/products/tags",{include:e})),c})({selected:e,search:t});return Promise.all(r.map((e=>o()({path:e})))).then((e=>{const t=e.flat();return s(t,(e=>e.id))}))},g=e=>o()({path:Object(n.addQueryArgs)("wc/store/v1/products/categories",{per_page:0,...e})}),p=e=>o()({path:`wc/store/v1/products/categories/${e}`}),h=e=>o()({path:Object(n.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:e})}),O=(e,t)=>{if(!e.title.raw)return e.slug;const r=1===t.filter((t=>t.title.raw===e.title.raw)).length;return e.title.raw+(r?"":` - ${e.slug}`)}},244:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),c=r(6);const o=e=>t=>{var r;const[o,a]=Object(n.useState)(!1),{attributes:i,category:s,clientId:l,product:u}=t,d=s||u,{editMode:b}=i,m=(null==d?void 0:d.link)||(null==d?void 0:d.permalink),g=Object(c.useSelect)((e=>e("core/block-editor").getBlock(l))),p=null==g||null===(r=g.innerBlocks[0])||void 0===r?void 0:r.innerBlocks[0],h=(null==p?void 0:p.clientId)||"",O=Object(n.useMemo)((()=>(null==p?void 0:p.attributes)||{}),[p]),{url:j}=O,{updateBlockAttributes:f}=Object(c.useDispatch)("core/block-editor");return Object(n.useEffect)((()=>{o&&h&&!b&&m&&j&&m!==j&&(f(h,{url:m}),a(!1))}),[h,o,b,m,f,j]),Object(n.createElement)(e,{...t,triggerUrlUpdate:()=>a(!0)})}},245:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0);const c=e=>t=>{const[r,c]=Object(n.useState)(!1),{isSelected:o}=t;return Object(n.useEffect)((()=>{c(!1)}),[o]),Object(n.createElement)(e,{...t,useEditingImage:[r,c]})}},246:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),c=r(2),o=r(1),a=r(65),i=r(110),s=r(49),l=r(100);const u=({description:e,editLabel:t,icon:r,label:u})=>d=>b=>{const{attributes:m,debouncedSpeak:g,name:p,setAttributes:h,triggerUrlUpdate:O=(()=>{})}=b,j=Object(l.c)(p);return m.editMode?Object(n.createElement)(c.Placeholder,{icon:Object(n.createElement)(c.Icon,{icon:r}),label:u,className:j},e,Object(n.createElement)("div",{className:`${j}__selection`},p===s.a.featuredCategory&&Object(n.createElement)(a.a,{selected:[m.categoryId],onChange:(e=[])=>{const t=e[0]?e[0].id:0;h({categoryId:t,mediaId:0,mediaSrc:""}),O()},isSingle:!0}),p===s.a.featuredProduct&&Object(n.createElement)(i.a,{selected:m.productId?[m.productId]:[],showVariations:!0,onChange:(e=[])=>{const t=e[0]?e[0].id:0;h({productId:t,mediaId:0,mediaSrc:""}),O()}}),Object(n.createElement)(c.Button,{isPrimary:!0,onClick:()=>{h({editMode:!1}),g(t)}},Object(o.__)("Done","woocommerce")))):Object(n.createElement)(d,{...b})}},247:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),c=r(88),o=r(49),a=r(100);const i=e=>t=>{const{error:r,isLoading:i,name:s}=t,l=Object(a.c)(s),u=s===o.a.featuredCategory?t.getCategory:t.getProduct;return r?Object(n.createElement)(c.a,{className:`${l}-error`,error:r,isLoading:i,onRetry:u}):Object(n.createElement)(e,{...t})}},248:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(0),c=r(5),o=r(49),a=r(99);const i=({align:e,backgroundImageId:t,backgroundImageSize:r,backgroundImageSrc:a,containerRef:i,isEditingImage:s,setAttributes:l,setIsEditingImage:u})=>{const d=function(e,t){const[r,c]=Object(n.useState)(),o=Object(n.useCallback)((()=>{var t;c(null===(t=e.current)||void 0===t?void 0:t.clientWidth)}),[e]);return Object(n.useEffect)(o,[o,...t]),Object(n.useEffect)((()=>{if(!e.current)return;const{defaultView:t}=e.current.ownerDocument;return t?(t.addEventListener("resize",o),()=>{t.removeEventListener("resize",o)}):void 0}),[e,o]),r}(i,[e]);return"function"==typeof c.__experimentalImageEditingProvider?Object(n.createElement)(c.__experimentalImageEditingProvider,{id:t,url:a,naturalHeight:r.height||o.b.height,naturalWidth:r.width||o.b.width,onSaveImage:({id:e,url:t})=>{l({mediaId:e,mediaSrc:t})},isEditing:s,onFinishEditing:()=>u(!1)},Object(n.createElement)(c.__experimentalImageEditor,{url:a,height:r.height||o.b.height,width:r.width||o.b.width})):Object(n.createElement)(c.__experimentalImageEditor,{id:t,url:a,height:r.height||o.b.height,width:r.width||o.b.width,naturalHeight:r.height,naturalWidth:r.width,onSaveImage:({id:e,url:t})=>{l({mediaId:e,mediaSrc:t})},onFinishEditing:()=>u(!1),clientWidth:d})},s=e=>t=>{const[r,c]=t.useEditingImage,s=Object(n.useRef)(null),{attributes:l,backgroundImageSize:u,name:d,setAttributes:b}=t,{mediaId:m,mediaSrc:g}=l,p=d===o.a.featuredProduct?t.product:t.category,{backgroundImageId:h,backgroundImageSrc:O}=Object(a.a)({item:p,mediaId:m,mediaSrc:g,blockName:d});return r?Object(n.createElement)("div",{ref:s},Object(n.createElement)(i,{align:l.align,backgroundImageId:h,backgroundImageSize:u,backgroundImageSrc:O,containerRef:s,isEditingImage:r,setAttributes:b,setIsEditingImage:c})):Object(n.createElement)(e,{...t})}},249:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),c=r(1),o=r(5),a=r(2),i=r(99),s=r(49);const l=({alt:e,backgroundImageSrc:t,contentPanel:r,dimRatio:i,focalPoint:s,hasParallax:l,imageFit:u,isRepeated:d,overlayColor:b,overlayGradient:m,setAttributes:g,setGradient:p,showDesc:h})=>{const O="function"==typeof a.FocalPointPicker,j=!d&&!l;return Object(n.createElement)(o.InspectorControls,{key:"inspector"},Object(n.createElement)(a.PanelBody,{title:Object(c.__)("Content","woocommerce")},Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Show description","woocommerce"),checked:h,onChange:()=>g({showDesc:!h})}),r),!!t&&Object(n.createElement)(n.Fragment,null,O&&Object(n.createElement)(a.PanelBody,{title:Object(c.__)("Media settings","woocommerce")},Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Fixed background","woocommerce"),checked:l,onChange:()=>{g({hasParallax:!l})}}),Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Repeated background","woocommerce"),checked:d,onChange:()=>{g({isRepeated:!d})}}),!d&&Object(n.createElement)(a.__experimentalToggleGroupControl,{help:Object(n.createElement)(n.Fragment,null,Object(n.createElement)("span",{style:{display:"block",marginBottom:"1em"}},Object(c.__)("Select “Cover” to have the image automatically fit its container.","woocommerce")),Object(n.createElement)("span",null,Object(c.__)("This may affect your ability to freely move the focal point of the image.","woocommerce"))),label:Object(c.__)("Image fit","woocommerce"),value:u,onChange:e=>g({imageFit:e})},Object(n.createElement)(a.__experimentalToggleGroupControlOption,{label:Object(c.__)("None","woocommerce"),value:"none"}),Object(n.createElement)(a.__experimentalToggleGroupControlOption
/* translators: "Cover" is a verb that indicates an image covering the entire container. */,{label:Object(c.__)("Cover","woocommerce"),value:"cover"})),Object(n.createElement)(a.FocalPointPicker,{label:Object(c.__)("Focal Point Picker","woocommerce"),url:t,value:s,onChange:e=>g({focalPoint:e})}),j&&Object(n.createElement)(a.TextareaControl,{label:Object(c.__)("Alt text (alternative text)","woocommerce"),value:e,onChange:e=>{g({alt:e})},help:Object(n.createElement)(n.Fragment,null,Object(n.createElement)(a.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(c.__)("Describe the purpose of the image","woocommerce")))})),Object(n.createElement)(o.__experimentalPanelColorGradientSettings,{__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,title:Object(c.__)("Overlay","woocommerce"),initialOpen:!0,settings:[{colorValue:b,gradientValue:m,onColorChange:e=>g({overlayColor:e}),onGradientChange:e=>{p(e),g({overlayGradient:e})},label:Object(c.__)("Color","woocommerce")}]},Object(n.createElement)(a.RangeControl,{label:Object(c.__)("Opacity","woocommerce"),value:i,onChange:e=>g({dimRatio:e}),min:0,max:100,step:10,required:!0}))))},u=e=>t=>{const{attributes:r,name:u,setAttributes:d}=t,{alt:b,dimRatio:m,focalPoint:g,hasParallax:p,isRepeated:h,imageFit:O,mediaId:j,mediaSrc:f,overlayColor:v,overlayGradient:_,showDesc:w,showPrice:E}=r,k=u===s.a.featuredProduct?t.product:t.category,{setGradient:y}=Object(o.__experimentalUseGradient)({gradientAttribute:"overlayGradient",customGradientAttribute:"overlayGradient"}),{backgroundImageSrc:S}=Object(i.a)({item:k,mediaId:j,mediaSrc:f,blockName:u}),I=u===s.a.featuredProduct?Object(n.createElement)(a.ToggleControl,{label:Object(c.__)("Show price","woocommerce"),checked:E,onChange:()=>d({showPrice:!E})}):void 0;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(l,{alt:b,backgroundImageSrc:S,contentPanel:I,dimRatio:m,focalPoint:g,hasParallax:p,isRepeated:h,imageFit:O,overlayColor:v,overlayGradient:_,setAttributes:d,setGradient:y,showDesc:w}),Object(n.createElement)(e,{...t}))}},25:function(e,t){e.exports=window.wp.isShallowEqual},250:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),c=r(1),o=r(5),a=r(2),i=r(393),s=r(99);const l=({backgroundImageId:e,backgroundImageSrc:t,contentAlign:r,cropLabel:s,editLabel:l,editMode:u,isEditingImage:d,mediaSrc:b,setAttributes:m,setIsEditingImage:g})=>Object(n.createElement)(o.BlockControls,null,Object(n.createElement)(o.AlignmentToolbar,{value:r,onChange:e=>{m({contentAlign:e})}}),Object(n.createElement)(a.ToolbarGroup,null,t&&!d&&Object(n.createElement)(a.ToolbarButton,{onClick:()=>g(!0),icon:i.a,label:s}),Object(n.createElement)(o.MediaReplaceFlow,{mediaId:e,mediaURL:b,accept:"image/*",onSelect:e=>{m({mediaId:e.id,mediaSrc:e.url})},allowedTypes:["image"]}),e&&b?Object(n.createElement)(a.ToolbarButton,{onClick:()=>m({mediaId:0,mediaSrc:""})},Object(c.__)("Reset","woocommerce")):null),Object(n.createElement)(a.ToolbarGroup,{controls:[{icon:"edit",title:l,onClick:()=>m({editMode:!u}),isActive:u}]})),u=({cropLabel:e,editLabel:t})=>r=>c=>{const[o,a]=c.useEditingImage,{attributes:i,category:u,name:d,product:b,setAttributes:m}=c,{contentAlign:g,editMode:p,mediaId:h,mediaSrc:O}=i,j=u||b,{backgroundImageId:f,backgroundImageSrc:v}=Object(s.a)({item:j,mediaId:h,mediaSrc:O,blockName:d});return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(l,{backgroundImageId:f,backgroundImageSrc:v,contentAlign:g,cropLabel:e,editLabel:t,editMode:p,isEditingImage:o,mediaSrc:O,setAttributes:m,setIsEditingImage:a}),Object(n.createElement)(r,{...c}))}},253:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n=r(0),c=r(260),o=r(2),a=r(4),i=r.n(a),s=r(86),l=r(5),u=r(1);const d=({itemId:e,linkText:t,permalink:r})=>{const c=i()("wp-block-button__link","is-style-fill");return"preview"===e?Object(n.createElement)("div",{className:"wp-block-button aligncenter",style:{width:"100%"}},Object(n.createElement)(l.RichText.Content,{tagName:"a",className:c,href:r,title:t,style:{backgroundColor:"vivid-green-cyan",borderRadius:"5px"},value:t,target:r})):Object(n.createElement)(l.InnerBlocks,{template:[["core/buttons",{layout:{type:"flex",justifyContent:"center"}},[["core/button",{text:Object(u.__)("Shop now","woocommerce"),url:r}]]]],templateLock:"all"})};var b=r(41);const m=({className:e="",onResize:t,...r})=>{const[c,a]=Object(n.useState)(!1),s=i()(e,{"is-resizing":c}),l=Object(b.c)(((e,r,n,o)=>{c||a(!0),null==t||t(e,r,n,o)}),50,{leading:!0});return Object(n.createElement)(o.ResizableBox,{className:s,enable:{bottom:!0},onResize:l,onResizeStop:(...e)=>{null==t||t(...e),a(!1)},...r})};var g=r(99),p=r(100);const h=({emptyMessage:e,icon:t,label:r,noSelectionButtonLabel:a})=>l=>u=>{const[b]=u.useEditingImage,{attributes:h,category:O,isLoading:j,isSelected:f,name:v,product:_,setAttributes:w}=u,{mediaId:E,mediaSrc:k}=h,y=O||_,[S,I]=Object(n.useState)({}),{backgroundImageSrc:C}=Object(g.a)({item:y,mediaId:E,mediaSrc:k,blockName:v}),x=Object(p.c)(v),P=Object(n.useCallback)(((e,t,r)=>{w({minHeight:parseInt(r.style.height,10)})}),[w]),N=Object(s.a)(h);return b?Object(n.createElement)(l,{...u,backgroundImageSize:S}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(l,{...u,backgroundImageSize:S}),y?(()=>{var e,t;const{contentAlign:r,dimRatio:o,focalPoint:a,hasParallax:s,isRepeated:l,imageFit:u,minHeight:b,overlayColor:g,overlayGradient:v,showDesc:w,showPrice:E,style:k,textColor:S}=h,R=i()(x,{"is-selected":f&&"preview"!==h.categoryId&&"preview"!==h.productId,"is-loading":!y&&j,"is-not-found":!y&&!j,"has-background-dim":0!==o,"is-repeated":l},Object(p.a)(o),"center"!==r&&`has-${r}-content`,N.className),A={borderRadius:null==k||null===(e=k.border)||void 0===e?void 0:e.radius,color:S?`var(--wp--preset--color--${S})`:null==k||null===(t=k.color)||void 0===t?void 0:t.text,boxSizing:"border-box",minHeight:b,...N.style},$=!l&&!s,L=Object(p.b)({focalPoint:a,imageFit:u,isImgElement:$,isRepeated:l,url:C}),T={background:v,backgroundColor:g};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(m,{enable:{bottom:!0},onResize:P,showHandle:f,style:{minHeight:b}}),Object(n.createElement)("div",{className:R,style:A},Object(n.createElement)("div",{className:`${x}__wrapper`},Object(n.createElement)("div",{className:"background-dim__overlay",style:T}),C&&($?Object(n.createElement)("img",{alt:y.name,className:`${x}__background-image`,src:C,style:L,onLoad:e=>{var t,r;I({height:null===(t=e.currentTarget)||void 0===t?void 0:t.naturalHeight,width:null===(r=e.currentTarget)||void 0===r?void 0:r.naturalWidth})}}):Object(n.createElement)("div",{className:i()(`${x}__background-image`,{"has-parallax":s}),style:L})),Object(n.createElement)("h2",{className:`${x}__title`,dangerouslySetInnerHTML:{__html:y.name}}),!Object(c.a)(null==_?void 0:_.variation)&&Object(n.createElement)("h3",{className:`${x}__variation`,dangerouslySetInnerHTML:{__html:_.variation}}),w&&Object(n.createElement)("div",{className:`${x}__description`,dangerouslySetInnerHTML:{__html:(null==O?void 0:O.description)||(null==_?void 0:_.short_description)}}),E&&Object(n.createElement)("div",{className:`${x}__price`,dangerouslySetInnerHTML:{__html:_.price_html}}),Object(n.createElement)("div",{className:`${x}__link`},(()=>{const{categoryId:e,linkText:t,productId:r}=h;return Object(n.createElement)(d,{itemId:e||r,linkText:t,permalink:(O||_).permalink})})()))))})():Object(n.createElement)(o.Placeholder,{className:x,icon:Object(n.createElement)(o.Icon,{icon:t}),label:r},j?Object(n.createElement)(o.Spinner,null):Object(n.createElement)(n.Fragment,null,Object(n.createElement)("p",null,e),Object(n.createElement)("div",{style:{flexBasis:"100%",height:"0"}}),Object(n.createElement)("button",{type:"button",className:"components-button is-secondary",onClick:()=>w({editMode:!0})},a))))}},254:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),c=r(5),o=r(7),a=r(3),i=r(83);function s(e){return function(t){const r=Object(c.useBlockProps)(),{color:o,...a}=r.style;return Object(n.createElement)("div",{...r,style:a},Object(n.createElement)(e,{...t}))}}function l(e,t,r,l){var u,d,b,m,g,p,h,O,j,f,v;const _={attributes:{...r.attributes,minHeight:{type:"number",default:Object(a.getSetting)("defaultHeight",500)}},supports:{...r.supports,color:{background:null===(u=r.supports)||void 0===u||null===(d=u.color)||void 0===d?void 0:d.background,text:null===(b=r.supports)||void 0===b||null===(m=b.color)||void 0===m?void 0:m.text},spacing:{padding:null===(g=r.supports)||void 0===g||null===(p=g.spacing)||void 0===p?void 0:p.padding,...Object(i.b)()&&{__experimentalDefaultControls:{padding:null===(h=r.supports)||void 0===h||null===(O=h.spacing)||void 0===O?void 0:O.__experimentalDefaultControls},__experimentalSkipSerialization:null===(j=r.supports)||void 0===j||null===(f=j.spacing)||void 0===f?void 0:f.__experimentalSkipSerialization}},...Object(i.b)()&&{__experimentalBorder:null==r||null===(v=r.supports)||void 0===v?void 0:v.__experimentalBorder}}},w={attributes:{alt:"",contentAlign:"center",dimRatio:50,editMode:!1,hasParallax:!1,isRepeated:!1,height:Object(a.getSetting)("defaultHeight",500),mediaSrc:"",overlayColor:"#000000",showDesc:!0}};Object(o.registerBlockType)(r,{..._,example:{...w,...t},edit:s(e),save:()=>Object(n.createElement)(c.InnerBlocks.Content,null),...l})}},26:function(e,t){e.exports=window.React},260:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=async e=>{if("function"==typeof e.json)try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}return{message:e.message,type:e.type||"general"}}},3:function(e,t){e.exports=window.wc.wcSettings},31:function(e,t){e.exports=window.wp.escapeHtml},34:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(31);t.a=({error:e})=>Object(n.createElement)("div",{className:"wc-block-error-message"},(({message:e,type:t})=>e?"general"===t?Object(n.createElement)("span",null,Object(c.__)("The following error was returned","woocommerce"),Object(n.createElement)("br",null),Object(n.createElement)("code",null,Object(o.escapeHTML)(e))):"api"===t?Object(n.createElement)("span",null,Object(c.__)("The following error was returned from the API","woocommerce"),Object(n.createElement)("br",null),Object(n.createElement)("code",null,Object(o.escapeHTML)(e))):e:Object(c.__)("An error has prevented the block from being updated.","woocommerce"))(e))},35:function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(0),c=r(4),o=r.n(c),a=r(2);function i(e,t,r){const n=new Set(t.map((e=>e[r])));return e.filter((e=>!n.has(e[r])))}var s=r(10),l=r(16);const u=({label:e})=>Object(n.createElement)("span",{className:"woocommerce-search-list__item-count"},e),d=e=>{const{item:t,search:r}=e,c=t.breadcrumbs&&t.breadcrumbs.length;return Object(n.createElement)("span",{className:"woocommerce-search-list__item-label"},c?Object(n.createElement)("span",{className:"woocommerce-search-list__item-prefix"},Object(l.b)(t.breadcrumbs)):null,Object(n.createElement)("span",{className:"woocommerce-search-list__item-name"},Object(l.d)(Object(s.decodeEntities)(t.name),r)))},b=({countLabel:e,className:t,depth:r=0,controlId:c="",item:b,isSelected:m,isSingle:g,onSelect:p,search:h="",selected:O,useExpandedPanelId:j,...f})=>{var v,_;const[w,E]=j,k=null!=e&&void 0!==b.count&&null!==b.count,y=!(null===(v=b.breadcrumbs)||void 0===v||!v.length),S=!(null===(_=b.children)||void 0===_||!_.length),I=w===b.id,C=o()(["woocommerce-search-list__item",`depth-${r}`,t],{"has-breadcrumbs":y,"has-children":S,"has-count":k,"is-expanded":I,"is-radio-button":g}),x=f.name||`search-list-item-${c}`,P=`${x}-${b.id}`,N=Object(n.useCallback)((()=>{E(I?-1:Number(b.id))}),[I,b.id,E]);return S?Object(n.createElement)("div",{className:C,onClick:N,onKeyDown:e=>"Enter"===e.key||" "===e.key?N():null,role:"treeitem",tabIndex:0},g?Object(n.createElement)(n.Fragment,null,Object(n.createElement)("input",{type:"radio",id:P,name:x,value:b.value,onChange:p(b),onClick:e=>e.stopPropagation(),checked:m,className:"woocommerce-search-list__item-input",...f}),Object(n.createElement)(d,{item:b,search:h}),k?Object(n.createElement)(u,{label:e||b.count}):null):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(a.CheckboxControl,{className:"woocommerce-search-list__item-input",checked:m,...!m&&b.children.some((e=>O.find((t=>t.id===e.id))))?{indeterminate:!0}:{},label:Object(l.d)(Object(s.decodeEntities)(b.name),h),onChange:()=>{m?p(i(O,b.children,"id"))():p(function(e,t,r){const n=i(t,e,"id");return[...e,...n]}(O,b.children))()},onClick:e=>e.stopPropagation()}),k?Object(n.createElement)(u,{label:e||b.count}):null)):Object(n.createElement)("label",{htmlFor:P,className:C},g?Object(n.createElement)(n.Fragment,null,Object(n.createElement)("input",{type:"radio",id:P,name:x,value:b.value,onChange:p(b),checked:m,className:"woocommerce-search-list__item-input",...f}),Object(n.createElement)(d,{item:b,search:h})):Object(n.createElement)(a.CheckboxControl,{id:P,name:x,className:"woocommerce-search-list__item-input",value:Object(s.decodeEntities)(b.value),label:Object(l.d)(Object(s.decodeEntities)(b.name),h),onChange:p(b),checked:m,...f}),k?Object(n.createElement)(u,{label:e||b.count}):null)};t.b=b},373:function(e,t,r){"use strict";var n=r(18),c=r.n(n),o=r(0),a=r(11),i=r(23),s=r(28);const l=Object(a.createHigherOrderComponent)((e=>class extends o.Component{constructor(...e){super(...e),c()(this,"state",{error:null,loading:!1,product:"preview"===this.props.attributes.productId?this.props.attributes.previewProduct:null}),c()(this,"loadProduct",(()=>{const{productId:e}=this.props.attributes;"preview"!==e&&(e?(this.setState({loading:!0}),Object(i.e)(e).then((e=>{this.setState({product:e,loading:!1,error:null})})).catch((async e=>{const t=await Object(s.a)(e);this.setState({product:null,loading:!1,error:t})}))):this.setState({product:null,loading:!1,error:null}))}))}componentDidMount(){this.loadProduct()}componentDidUpdate(e){e.attributes.productId!==this.props.attributes.productId&&this.loadProduct()}render(){const{error:t,loading:r,product:n}=this.state;return Object(o.createElement)(e,{...this.props,error:t,getProduct:this.loadProduct,isLoading:r,product:n})}}),"withProduct");t.a=l},389:function(e){e.exports=JSON.parse('{"name":"woocommerce/featured-product","version":"1.0.0","title":"Featured Product","description":"Highlight a product or variation.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":["wide","full"],"html":false,"color":{"background":true,"text":true},"spacing":{"padding":true,"__experimentalDefaultControls":{"padding":true},"__experimentalSkipSerialization":true},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true},"multiple":true},"attributes":{"alt":{"type":"string","default":""},"contentAlign":{"type":"string","default":"center"},"dimRatio":{"type":"number","default":50},"editMode":{"type":"boolean","default":true},"focalPoint":{"type":"object","default":{"x":0.5,"y":0.5}},"imageFit":{"type":"string","default":"none"},"hasParallax":{"type":"boolean","default":false},"isRepeated":{"type":"boolean","default":false},"mediaId":{"type":"number","default":0},"mediaSrc":{"type":"string","default":""},"minHeight":{"type":"number","default":500},"linkText":{"type":"string","default":"Shop now"},"overlayColor":{"type":"string","default":"#000000"},"overlayGradient":{"type":"string"},"productId":{"type":"number"},"previewProduct":{"type":"object","default":null},"showDesc":{"type":"boolean","default":true},"showPrice":{"type":"boolean","default":true}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>null===e},432:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),c=r(17);const o=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:Object(n.__)("Fly your WordPress banner with this beauty! Deck out your office space or add it to your kids walls. This banner will spruce up any space it’s hung!","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",price:"7.99",price_html:'<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>7.99</span>',images:[{id:1,src:c.n+"previews/pennant.jpg",thumbnail:c.n+"previews/pennant.jpg",name:"pennant-1.jpg",alt:"WordPress Pennant",srcset:"",sizes:""}],average_rating:5,categories:[{id:1,name:"Decor",slug:"decor",link:"https://example.org"}],review_count:1,prices:{currency_code:"GBP",decimal_separator:".",thousand_separator:",",decimals:2,price_prefix:"£",price_suffix:"",price:"7.99",regular_price:"9.99",sale_price:"7.99",price_range:null},add_to_cart:{text:Object(n.__)("Add to cart","woocommerce"),description:Object(n.__)("Add to cart","woocommerce")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}]},49:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return c}));const n={height:500,width:500},c={featuredCategory:"woocommerce/featured-category",featuredProduct:"woocommerce/featured-product"}},499:function(e,t,r){e.exports=r(587)},5:function(e,t){e.exports=window.wp.blockEditor},500:function(e,t){},501:function(e,t){},54:function(e,t){},55:function(e,t){},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=(e,t)=>e.reduce(((e,r)=>(e[String(t?r[t]:r)]=r,e)),{})},587:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(70),o=r(617),a=(r(500),r(501),r(373)),i=r(2),s=r(11),l=r(1),u=r(250),d=r(248),b=r(249),m=r(247),g=r(246),p=r(245),h=r(253),O=r(244);const j={icon:o.a,label:Object(l.__)("Featured Product","woocommerce")},f={...j,cropLabel:Object(l.__)("Edit product image","woocommerce"),editLabel:Object(l.__)("Edit selected product","woocommerce")},v={...j,emptyMessage:Object(l.__)("No product is selected.","woocommerce"),noSelectionButtonLabel:Object(l.__)("Select a product","woocommerce")},_={...j,description:Object(l.__)("Highlight a product or variation.","woocommerce"),editLabel:Object(l.__)("Showing Featured Product block preview.","woocommerce")};var w=Object(s.compose)([a.a,i.withSpokenMessages,O.a,p.a,Object(g.a)(_),Object(h.a)(v),m.a,d.a,b.a,Object(u.a)(f)])((()=>Object(n.createElement)(n.Fragment,null))),E=r(254);const k={attributes:{productId:"preview",previewProduct:r(432).a[0],editMode:!1}};var y=r(389);Object(E.a)(w,k,y,{icon:{src:Object(n.createElement)(c.a,{icon:o.a,className:"wc-block-editor-components-block-icon"})}})},6:function(e,t){e.exports=window.wp.data},65:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(35),a=r(102),i=r(2),s=r(11),l=r(23),u=r(28);const d=Object(s.createHigherOrderComponent)((e=>class extends n.Component{constructor(){super(...arguments),this.state={error:null,loading:!1,categories:[]},this.loadCategories=this.loadCategories.bind(this)}componentDidMount(){this.loadCategories()}loadCategories(){this.setState({loading:!0}),Object(l.c)().then((e=>{this.setState({categories:e,loading:!1,error:null})})).catch((async e=>{const t=await Object(u.a)(e);this.setState({categories:[],loading:!1,error:t})}))}render(){const{error:t,loading:r,categories:c}=this.state;return Object(n.createElement)(e,{...this.props,error:t,isLoading:r,categories:c})}}),"withCategories");var b=d,m=r(34),g=r(4),p=r.n(g);r(106);const h=({categories:e,error:t,isLoading:r,onChange:s,onOperatorChange:l,operator:u,selected:d,isCompact:b,isSingle:g,showReviewCount:h})=>{const O={clear:Object(c.__)("Clear all product categories","woocommerce"),list:Object(c.__)("Product Categories","woocommerce"),noItems:Object(c.__)("Your store doesn't have any product categories.","woocommerce"),search:Object(c.__)("Search for product categories","woocommerce"),selected:e=>Object(c.sprintf)(/* translators: %d is the count of selected categories. */
Object(c._n)("%d category selected","%d categories selected",e,"woocommerce"),e),updated:Object(c.__)("Category search results updated.","woocommerce")};return t?Object(n.createElement)(m.a,{error:t}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(a.a,{className:"woocommerce-product-categories",list:e,isLoading:r,selected:d.map((t=>e.find((e=>e.id===t)))).filter(Boolean),onChange:s,renderItem:e=>{const{item:t,search:r,depth:a=0}=e,i=t.breadcrumbs.length?`${t.breadcrumbs.join(", ")}, ${t.name}`:t.name,s=h?Object(c.sprintf)(/* translators: %1$s is the item name, %2$d is the count of reviews for the item. */
Object(c._n)("%1$s, has %2$d review","%1$s, has %2$d reviews",t.review_count,"woocommerce"),i,t.review_count):Object(c.sprintf)(/* translators: %1$s is the item name, %2$d is the count of products for the item. */
Object(c._n)("%1$s, has %2$d product","%1$s, has %2$d products",t.count,"woocommerce"),i,t.count),l=h?Object(c.sprintf)(/* translators: %d is the count of reviews. */
Object(c._n)("%d review","%d reviews",t.review_count,"woocommerce"),t.review_count):Object(c.sprintf)(/* translators: %d is the count of products. */
Object(c._n)("%d product","%d products",t.count,"woocommerce"),t.count);return Object(n.createElement)(o.a,{className:p()("woocommerce-product-categories__item","has-count",{"is-searching":r.length>0,"is-skip-level":0===a&&0!==t.parent}),...e,countLabel:l,"aria-label":s})},messages:O,isCompact:b,isHierarchical:!0,isSingle:g}),!!l&&Object(n.createElement)("div",{hidden:d.length<2},Object(n.createElement)(i.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(c.__)("Display products matching","woocommerce"),help:Object(c.__)("Pick at least two categories to use this setting.","woocommerce"),value:u,onChange:l,options:[{label:Object(c.__)("Any selected categories","woocommerce"),value:"any"},{label:Object(c.__)("All selected categories","woocommerce"),value:"all"}]})))};h.defaultProps={operator:"any",isCompact:!1,isSingle:!1},t.a=b(h)},7:function(e,t){e.exports=window.wp.blocks},73:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(35),a=r(4),i=r.n(a);t.a=({className:e,item:t,isSelected:r,isLoading:a,onSelect:s,disabled:l,...u})=>Object(n.createElement)(n.Fragment,null,Object(n.createElement)(o.a,{...u,key:t.id,className:e,isSelected:r,item:t,onSelect:s,disabled:l}),r&&a&&Object(n.createElement)("div",{key:"loading",className:i()("woocommerce-search-list__item","woocommerce-product-attributes__item","depth-1","is-loading","is-not-active")},Object(n.createElement)(c.Spinner,null)))},83:function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return i}));var n=r(7),c=r(17);const o=(e,t)=>{if(c.o>2)return Object(n.registerBlockType)(e,t)},a=()=>c.o>2,i=()=>c.o>1},84:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"number"==typeof e},86:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(4),c=r.n(n),o=r(21),a=r(113),i=r(654),s=r(127);function l(e={}){const t={};return Object(s.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function u(e,t){return e&&t?`has-${Object(i.a)(t)}-${e}`:""}const d=e=>{const t=(e=>{const t=Object(o.b)(e)?e:{style:{}};let r=t.style;return Object(a.a)(r)&&(r=JSON.parse(r)||{}),Object(o.b)(r)||(r={}),{...t,style:r}})(e),r=function(e){var t,r,n,a,i,s,d;const{backgroundColor:b,textColor:m,gradient:g,style:p}=e,h=u("background-color",b),O=u("color",m),j=function(e){if(e)return`has-${e}-gradient-background`}(g),f=j||(null==p||null===(t=p.color)||void 0===t?void 0:t.gradient);return{className:c()(O,j,{[h]:!f&&!!h,"has-text-color":m||(null==p||null===(r=p.color)||void 0===r?void 0:r.text),"has-background":b||(null==p||null===(n=p.color)||void 0===n?void 0:n.background)||g||(null==p||null===(a=p.color)||void 0===a?void 0:a.gradient),"has-link-color":Object(o.b)(null==p||null===(i=p.elements)||void 0===i?void 0:i.link)?null==p||null===(s=p.elements)||void 0===s||null===(d=s.link)||void 0===d?void 0:d.color:void 0}),style:l({color:(null==p?void 0:p.color)||{}})}}(t),n=function(e){var t;const r=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:r,style:n}=e,o=r?u("border-color",r):"";return c()({"has-border-color":!!r||!(null==n||null===(t=n.border)||void 0===t||!t.color),[o]:!!o})}(e),style:l({border:r})}}(t),i=function(e){var t;return{className:void 0,style:l({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}(t),s=(e=>{const t=Object(o.b)(e.style.typography)?e.style.typography:{},r=Object(a.a)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:r,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}})(t);return{className:c()(s.className,r.className,n.className,i.className),style:{...s.style,...r.style,...n.style,...i.style}}}},88:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(70),a=r(212),i=r(4),s=r.n(i),l=r(2),u=r(34);r(131),t.a=({className:e,error:t,isLoading:r=!1,onRetry:i})=>Object(n.createElement)(l.Placeholder,{icon:Object(n.createElement)(o.a,{icon:a.a}),label:Object(c.__)("Sorry, an error occurred","woocommerce"),className:s()("wc-block-api-error",e)},Object(n.createElement)(u.a,{error:t}),i&&Object(n.createElement)(n.Fragment,null,r?Object(n.createElement)(l.Spinner,null):Object(n.createElement)(l.Button,{isSecondary:!0,onClick:i},Object(c.__)("Retry","woocommerce"))))},9:function(e,t){e.exports=window.wp.primitives},99:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),c=r(49),o=r(84);function a(e){return!!e&&Object(o.a)(e.id)&&"string"==typeof e.src}function i({blockName:e,item:t,mediaId:r,mediaSrc:o}){const[i,s]=Object(n.useState)(0),[l,u]=Object(n.useState)("");return Object(n.useEffect)((()=>{var n,o;s(r||(e===c.a.featuredProduct?(o=t)&&o.images&&o.images.length&&o.images[0].id||0:(n=t)&&a(n.image)?n.image.id:0))}),[e,t,r]),Object(n.useEffect)((()=>{var r,n;u(o||(e===c.a.featuredProduct?(n=t)&&n.images&&n.images.length&&n.images[0].src||"":(r=t)&&a(r.image)?r.image.src:""))}),[e,t,o]),{backgroundImageId:i,backgroundImageSrc:l}}}});